package com.erb.service.zwj;

import com.erb.entity.Pager;
import com.erb.entity.Redenvelopes;

import java.util.List;

public interface IAdminRedpacketService {
	List<Redenvelopes> findAll(Pager pager);

	Redenvelopes findRedpacket(Integer id);

	boolean removeRedpacket(Integer id);

	boolean saveRedpacket(Redenvelopes redenvelopes);

	boolean checkStateForEndTime();

	Redenvelopes findRedpacketByRedeemCode(String redeemCode);

	boolean modifyRedpacket(Redenvelopes redenvelopes);

	boolean incrementNumber(int id, int increment);
}
